<ul class="breadcrumb">
  <li><a href="/"><i class="fa fa-home"></i> 首页</a></li>
  <li><a href="<?=Yii::app()->createUrl('bank/list')?>"><i class="fa fa-flask"></i> 题库列表</a></li>
  <li><a href=""><i class="fa fa-lock"></i> 试题详情</a></li>
</ul>
<div class="panel panel-default">
  <div class="panel-heading">
    <i class="fa fa-lock"></i> 试题详情
  </div>
  <div class="panel-body">
    <?php if (Yii::app()->user->isGuest): ?>
      <div class="alert alert-warning">游客是无法查看本试卷的，<a
            href="<?= Yii::app()->createUrl('site/login', array('url' => Yii::app()->request->hostInfo . Yii::app()->request->url)) ?>">马上登录</a>
      </div>
    <?php else: ?>
      <?php if (Yii::app()->user->getState('type') != 1): ?>
        <div class="alert alert-info">只有学生才能进行测试喔!</div>
      <?php endif ?>
      <div id="loading"><img src="/public/img/loading.gif" alt=""/> 试题加载中...</div>
      <div id="exam">

      </div>
    <?php endif ?>
  </div>
  <div class="panel-footer">每个用户都有义务对试题进行保密.</div>
</div>
<?php if (!Yii::app()->user->isGuest): ?>
  <script>
    load_exam("<?=Yii::app()->createUrl('bank/exam',array('id'=>$id))?>");
  </script>
<?php endif ?>